# coding: utf-8

class Aggregate
end

class Repository
	def Where(condition)
	end
end

class C仓库单据基类 < Repository
	attr_accessor :单据编号
end

class C入库单 < C仓库单据基类
end

class C出库单 < C仓库单据基类
end

module C仓库单据基类仓储扩展
	def 根据编号获取单据(单据编号)
		return self.Where({:单据编号 => 单据编号})
	end
end

class C入库单仓储 < Repository
	include C仓库单据基类仓储扩展
end

class C出库单仓储 < Repository
	include C仓库单据基类仓储扩展
end